import React,{Suspense} from 'react';
import ReactDOM from 'react-dom/client';
import { RouterProvider } from "react-router-dom";
import router from "./router";

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
    <Suspense fallback={<div>Loading......</div>}>
      <RouterProvider router={router}></RouterProvider>
    </Suspense>
  </React.StrictMode>
);

